package com.example.serviceheadlines;

import com.tangyuan.common.exception.ExceptionHandlerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableAspectJAutoProxy
@MapperScan("com.example.serviceheadlines.mapper")
@SpringBootApplication
@Import(ExceptionHandlerInterceptor.class)
@EnableFeignClients(basePackages = "com.tangyuan.feignapis")
@EnableScheduling
public class ServiceHeadlinesApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceHeadlinesApplication.class, args);
        System.out.println("--------------------------------图文模块启动成功--------------------------------");
    }

}
